package design.Mediator;

/**
 * Created by looper on 2017/8/28.
 */
public abstract class Department {
  private String name;
  protected Mediator mediator;

  public Department(String name, Mediator mediator){
    this.name = name;
    this.mediator = mediator;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  //接收其他部门的消息
  public abstract void getMessage(String message);

}
